コード例 #1
0
    public int fleeOperateModifier = 5;   // bonus en flat par level d'opérate



    // Use this for initialization
    void Start()
    {
        iAMng            = GetComponent <EnemyIA>();
        statsSCR         = GetComponent <EnemyStats>();
        shipMap          = GameObject.FindGameObjectWithTag("Manager").GetComponent <ShipMap>();
        eventsMng        = GameObject.FindGameObjectWithTag("Manager").GetComponentInChildren <EventsMainManager>();
        weaponsMng       = GameObject.FindGameObjectWithTag("Manager").GetComponent <WeaponManager>();
        weaponsMng.enemy = gameObject;
        StartCoroutine(RepairHullCrt());
        StartCoroutine(InitCrew());
    }
コード例 #2
0
 // Use this for initialization
 void Start()
 {
     evntPanelScr = GetComponent <EventPanelScript>();
     eventManager = evntPanelScr.eventMng;
     golds        = eventManager.goldReward;
     food         = eventManager.foodReward;
     cannonball   = eventManager.cannonballReward;
     if (eventManager.itemReward != null)
     {
         weaponID = eventManager.itemReward.itemID;
     }
     evntPanelScr.ShipCamera();
     evntPanelScr.SetTitle("Enemy destroyed");
     evntPanelScr.SetDesc("You destroyed your opponent and you collect some resources !");
     InstanciateReward(golds, food, cannonball, weaponID);
     InstanciateChoice(0, "Close");
     //GameObject.FindGameObjectWithTag("Manager").GetComponent<ItemInventory>().AddItemToInventory(3);
 }
コード例 #3
0
 // Use this for initialization
 void Start()
 {
     evntPanelScr = GetComponent<EventPanelScript>();
     eventManager = evntPanelScr.eventMng;
     golds = eventManager.goldReward;
     food = eventManager.foodReward;
     cannonball = eventManager.cannonballReward;
     if(eventManager.itemReward != null)
     {
         weaponID = eventManager.itemReward.itemID;
     }
     evntPanelScr.ShipCamera();
     evntPanelScr.SetTitle("Enemy destroyed");
     evntPanelScr.SetDesc("You destroyed your opponent and you collect some resources !");
     InstanciateReward(golds, food, cannonball, weaponID);
     InstanciateChoice(0, "Close");
     //GameObject.FindGameObjectWithTag("Manager").GetComponent<ItemInventory>().AddItemToInventory(3);
 }
コード例 #4
0
 // Use this for initialization
 void Start()
 {
     iAMng = GetComponent<EnemyIA>();
     statsSCR = GetComponent<EnemyStats>();
     shipMap = GameObject.FindGameObjectWithTag("Manager").GetComponent<ShipMap>();
     eventsMng = GameObject.FindGameObjectWithTag("Manager").GetComponentInChildren<EventsMainManager>();
     weaponsMng = GameObject.FindGameObjectWithTag("Manager").GetComponent<WeaponManager>();
     weaponsMng.enemy = gameObject;
     StartCoroutine(RepairHullCrt());
     StartCoroutine(InitCrew());
 }