示例#1
0
 // Use this for initialization
 void Start()
 {
     a = GameObject.Find("battleBackground").GetComponent<BattleButtonManage>();
     guiTt = gameObject.GetComponent<GUIText>();
     block = new Rect(gameObject.transform.position.x * Screen.width , (1 - gameObject.transform.position.y) * Screen.height + 24, Screen.width / 8, Screen.height / 16);
     _lifeBar = new Rect(gameObject.transform.position.x * Screen.width, (1 - gameObject.transform.position.y) * Screen.height, Screen.width / 8, Screen.height / 18);
 }
示例#2
0
    // Use this for initialization
    void Start()
    {
        textureList = GameObject.Find("Main Camera").GetComponent<StudentTextureList>();
        mineStu = GameObject.Find("battleBackground");
        myStudent = GameObject.Find("battleBackground").GetComponent<BattleButtonManage>().CurrentMine;
        enemyStudent = GameObject.Find("battleBackground").GetComponent<BattleButtonManage>().CurrentEnemy;
        animationlist = GameObject.Find("Main Camera").GetComponent<AttackAnimationList>();
        battlestate = GameObject.Find("battleBackground").GetComponent<BattleButtonManage>();
        if (myStudent == null)
            Debug.Log("myStu is null");

        if (myStudent.retSkillList() == null)
            Debug.Log("mySkillList is null");
    }