Inheritance: MonoBehaviour
Exemple #1
0
    private void Awake()
    {
        BuildWalls();

        if (m_Malisse == null)
        {
            m_Malisse = gameObject.GetComponentInChildren<Malisse>();
        }
    }
Exemple #2
0
    // protected

    // private

    // properties
    #endregion

    #region Unity API
    private void Awake()
    {
        BuildWalls();

        if (m_Malisse == null)
        {
            m_Malisse = gameObject.GetComponentInChildren <Malisse>();
        }
    }
Exemple #3
0
    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();
    }
Exemple #4
0
    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();
    }