示例#1
0
 void Awake()
 {
     if (instance == null)
     {
         instance = this;
     }
     else if (instance != this)
     {
         Destroy(gameObject);
     }
     gameStarted     = false;
     _source         = GetComponent <AudioSource>();
     initialPosition = transform.position;
     initialRotation = transform.rotation;
 }
示例#2
0
    //[Inject] KnifeManager knifeManager;

    // Use this for initialization
    void Start()
    {
        knifeMover = GetComponent <KnifeMover>();
        knifeState = GetComponent <KnifeState>();
    }