You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
800 B
32 lines
800 B
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
namespace UnityEngine.UCMobile
|
|
{
|
|
public class UCMobile : MonoBehaviour
|
|
{
|
|
|
|
public UCNoise ucNoise = new UCNoise();
|
|
public MoveToTarget moveTotarget = new MoveToTarget();
|
|
private List<UCMobileModel> mobileList;
|
|
|
|
// Use this for initialization
|
|
void Start()
|
|
{
|
|
mobileList = new List<UCMobileModel>();
|
|
mobileList.Add(ucNoise);
|
|
mobileList.Add(moveTotarget);
|
|
}
|
|
|
|
// Update is called once per frame
|
|
void Update()
|
|
{
|
|
foreach(UCMobileModel mobile in mobileList)
|
|
{
|
|
if (mobile.IsUsed)
|
|
mobile.DoBehavier(gameObject);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|