Пример #1
0
    void Start()
    {
        main = GetComponentInParent <MainCharController> ();
        bot  = GetComponentInParent <EnemyBotController> ();
        if (main)
        {
            damage = main.damage;
        }
        if (bot)
        {
            damage = bot.damage;
        }

        transform.localScale = Vector3.one * 1.1f;
    }
Пример #2
0
 // Use this for initialization
 void Start()
 {
     contrl = GetComponentInParent <EnemyBotController> ();
 }