void Start() { //DebugDraw debugDraw = gameObject.GetComponent<DebugDraw> (); //debugRing = debugDraw.createRing (Vector3.zero, wanderRadius); steeringUtils = gameObject.GetComponent <SteeringUtils> (); }
// Use this for initialization void Start() { steeringUtils = gameObject.GetComponent <SteeringUtils> (); enemy = gameObject.GetComponent <Enemy> (); player = GameObject.Find("Player").transform; }
// Use this for initialization void Start() { map = GameObject.Find("Map").GetComponent <TileMap> ().map; steeringUtils = GetComponent <SteeringUtils> (); followPath = GetComponent <FollowPath> (); rb = GetComponent <Rigidbody2D> (); player = GameObject.Find("Player").transform; laser = GetComponentInChildren <EnemyLaser> (); sr = GetComponent <SpriteRenderer> (); }
void Start() { // DebugDraw debugDraw = gameObject.GetComponent<DebugDraw> (); // debugRing = debugDraw.createRing (Vector3.zero, wanderRadius); steeringUtils = gameObject.GetComponent <SteeringUtils> (); levelBoundaryMask = (1 << LayerMask.NameToLayer("LevelBoundary")); enemy = gameObject.GetComponent <Enemy> (); }
// Use this for initialization public virtual void Start() { steeringUtils = GetComponent <SteeringUtils> (); followPath = GetComponent <FollowPath> (); rb = GetComponent <Rigidbody>(); int[] mapPos = Map.map.worldToMapPoint(transform.position); reservePosition(mapPos); myDebugCircle = Instantiate(debugCircle, transform.position, Quaternion.identity) as Transform; }
// Use this for initialization public override void Start() { base.Start(); map = GameObject.Find("TileMap").GetComponent <MapBuilder> ().map; steeringUtils = GetComponent <SteeringUtils> (); steeringUtils.collAvoidRadius = GetComponent <CircleCollider2D> ().radius; followPath = GetComponent <FollowPath> (); rb = GetComponent <Rigidbody2D> (); collAvoidSensor = transform.Find("CollAvoidSensor").GetComponent <NearSensor> (); atkRange = transform.Find("AtkRange").GetComponent <NearSensor> (); }
// Use this for initialization public virtual void Start() { steeringUtils = GetComponent<SteeringUtils> (); followPath = GetComponent<FollowPath> (); rb = GetComponent<Rigidbody>(); int[] mapPos = Map.map.worldToMapPoint(transform.position); reservePosition(mapPos); myDebugCircle = Instantiate(debugCircle, transform.position, Quaternion.identity) as Transform; }
// Use this for initialization void Start() { steeringUtils = GetComponent<SteeringUtils> (); rb = GetComponent<Rigidbody> (); }
// Use this for initialization void Start() { steeringUtils = GetComponent <SteeringUtils> (); rb = GetComponent <Rigidbody2D> (); }