void Start() { gearType = "MobilePlatform"; triggleEnable = true; stateOne = true; sourcePosition = transform.position; lastPosition = transform.position; pathDiretion = true; currentPointIndex = 0; doors = transform.GetComponentsInChildren <MobilePlatformDoor>(); gear = transform.GetComponentInChildren <MobilePlatformGear>(); motor = gameObject.AddComponent <MogoSimpleMotor>(); }
void Start() { gearType = "MobilePlatform"; triggleEnable = true; stateOne = true; sourcePosition = transform.position; lastPosition = transform.position; pathDiretion = true; currentPointIndex = 0; doors = transform.GetComponentsInChildren<MobilePlatformDoor>(); gear = transform.GetComponentInChildren<MobilePlatformGear>(); motor = gameObject.AddComponent<MogoSimpleMotor>(); }
void Start() { gearType = "PathPointVisableMobilePlatform"; lastPosition = transform.position; doors = transform.GetComponentsInChildren <MobilePlatformDoor>(); gear = transform.GetComponentInChildren <MobilePlatformGear>(); pathPoints.Add(transform.position); foreach (Transform pathPoint in pathPointTransform) { pathPoints.Add(pathPoint.position); } }
void Start() { gearType = "PathPointVisableMobilePlatform"; lastPosition = transform.position; doors = transform.GetComponentsInChildren<MobilePlatformDoor>(); gear = transform.GetComponentInChildren<MobilePlatformGear>(); pathPoints.Add(transform.position); foreach (Transform pathPoint in pathPointTransform) { pathPoints.Add(pathPoint.position); } }