private void Awake() { BuildWalls(); if (m_Malisse == null) { m_Malisse = gameObject.GetComponentInChildren<Malisse>(); } }
// protected // private // properties #endregion #region Unity API private void Awake() { BuildWalls(); if (m_Malisse == null) { m_Malisse = gameObject.GetComponentInChildren <Malisse>(); } }
void Start() { transform.localRotation = Quaternion.identity; sprite = GetComponent <tk2dAnimatedSprite>(); parent = transform.parent.GetComponent <Malisse>(); Walker = GetComponent <RoadWalker>(); Walker.RoadToWalk = GameUtils.FindAssociatedLevel(transform).transform.Find("Road").GetComponent <Spline>(); Walker.Stop(); }
void Start() { transform.localRotation = Quaternion.identity; sprite = GetComponent<tk2dAnimatedSprite>(); parent = transform.parent.GetComponent<Malisse>(); Walker = GetComponent<RoadWalker>(); Walker.RoadToWalk = GameUtils.FindAssociatedLevel(transform).transform.Find("Road").GetComponent<Spline>(); Walker.Stop(); }