void Start()
    {
        _tr      = transform;
        _tCamera = 0f;
        _curve   = gameObject.GetComponent <CatmullRomSpline>();

        _cubeActor    = GameObject.Find("Cube").GetComponent <CubeActor>();
        _capsuleActor = GameObject.Find("Capsule").GetComponent <CapsuleActor>();
    }
Beispiel #2
0
 public Stone(Vector3 pos, World world) : base(pos)
 {
     this.world = world;
     cube       = GameObject.Instantiate(PrefabManager.GetInstance().GetPrefab(PrefabType.Stone).GetGameObject());
     cube.transform.position = pos;
     rigidbody = cube.GetComponent <Rigidbody>();
     cube.AddComponent <CubeActor>();
     actor = cube.GetComponent <CubeActor>();
 }
Beispiel #3
0
 public Cloud(Vector3 pos, World world) : base(pos)
 {
     this.world = world;
     cube       = GameObject.Instantiate(PrefabManager.GetInstance().GetPrefab(PrefabType.Cloud).GetGameObject());
     cube.transform.position = pos;
     cube.AddComponent <CubeActor>();
     actor     = cube.GetComponent <CubeActor>();
     standTime = 2;
     chainAble = true;
 }