コード例 #1
0
ファイル: TabSort.cs プロジェクト: Portfolio870920/PF
    void Start()
    {
        GameMgr     = GameObject.Find("GameMGR").GetComponent<GameMGR>();
        Inventory   = GameObject.Find("UI Root/Camera/Inventory").GetComponent<Inven>();

        // 기본 활성화 탭을 all로 설정
        ChangeSprite(ITEM_TYPE.ALL);
    }
コード例 #2
0
    //public  GameObject  Target                  = null;

    void Awake()
    {
        // 게임 매니저 등록
        if( MGR == null)
        {
            MGR = GameObject.Find("GameMGR").GetComponent<GameMGR>();
        }
        
        // HP, MP설정
        CurrentHP = playerHP;
        CurrentMP = playerMP;
    }
コード例 #3
0
ファイル: Slime.cs プロジェクト: Portfolio870920/PF
 void Awake()
 {
     // 게임 매니져 설정
     MGR = GameObject.Find("GameMGR").GetComponent<GameMGR>();
     // 초기 설정
     ResetState();
     // 애니메이션 컴포넌트 가져오기
     Ani = GetComponent<Animation>();
     //체력바 생성
     HPBar = (GameObject)Instantiate(Resources.Load("Prefab/MOBHPbar", typeof(GameObject)), new Vector3(0, 0, 0), Quaternion.identity);
     // 네비메쉬 설정
     navi = GetComponent<NavMeshAgent>();
     navi.acceleration = 1f;
     navi.speed = MoveSpeed;
     navi.angularSpeed = RotSpeed;
     navi.stoppingDistance = AttackRange;
 }
コード例 #4
0
ファイル: Inven.cs プロジェクト: Portfolio870920/PF
 void Awake()
 {
     GameMgr = GameObject.Find("GameMGR").GetComponent<GameMGR>();
     Inventory_Grid = transform.FindChild("Grid").GetComponent<UIGrid>();
 }