void Start() { main = GetComponentInParent <MainCharController> (); bot = GetComponentInParent <EnemyBotController> (); if (main) { damage = main.damage; } if (bot) { damage = bot.damage; } transform.localScale = Vector3.one * 1.1f; }
// Use this for initialization void Start() { contrl = GetComponentInParent <EnemyBotController> (); }