Пример #1
0
 public void Initialize(WalkingMap map, float accel, float deAccel, float maxMoveSpeed, float rotationSpeed, bool isMeteor)
 {
     this.map           = map;
     pathReciever       = new PathReciever(map, gameObject, 10);
     this.accel         = accel;
     this.deAccel       = deAccel;
     this.maxMoveSpeed  = maxMoveSpeed;
     this.rotationSpeed = rotationSpeed;
     r           = GetComponent <Rigidbody>();
     initialized = true;
     Debug.Log("initialized follower");
 }
Пример #2
0
 public PathReciever(WalkingMap map, GameObject owner, int costIncrease)
 {
     this.owner        = owner;
     this.costIncrease = costIncrease;
     this.map          = map;
 }