Пример #1
0
 private void Awake()
 {
     character         = GetComponent <PlayerMovement>();
     rgbd2d            = GetComponent <Rigidbody2D>();
     toolBarController = GetComponent <ToolBarController>();
     animator          = GetComponent <Animator>();
 }
 private GameObject inactivateButton;//记录未激活的按钮
 void Awake()
 {
     objManager        = GameObject.Find("ObjManager").GetComponent <ObjManager>();
     toolBarController = objManager.toolBar.GetComponent <ToolBarController>();
 }
 private void Start()
 {
     objManager        = GameObject.Find("ObjManager").GetComponent <ObjManager>();
     toolBarController = objManager.toolBar.GetComponent <ToolBarController>();
 }
Пример #4
0
    private int CurrentKeyCode = -1;                       //当前武器的索引;

    void Awake()
    {
        Instance = this;
    }