Example #1
0
    // Use this for initialization
    void Start()
    {
        _damageable     = GetComponent <Damageable>();
        _facing         = GetComponent <Facing>();
        _deathBehaviour = GetComponent <DiesByFalling>();
        _facing.SetRandom();
        _mode = MonsterMode.Approach;
        _shipAttackSpotLeft  = GameObject.Find("FlyingLionAttackSpotLeft");
        _shipAttackSpotRight = GameObject.Find("FlyingLionAttackSpotRight");

        if (_shipAttackSpotRight == null || _shipAttackSpotLeft == null)
        {
            Debug.LogError("ERROR: Attack spot for Flying Lion not found");
        }

        _headCount++;
    }