コード例 #1
0
ファイル: JumperController.cs プロジェクト: bbuck/reaper
        protected override void Awake()
        {
            base.Awake();

            _motor = GetComponent <PhysicsMotor2D>();
            _base  = transform.Find("Base");
        }
コード例 #2
0
ファイル: PlayerController.cs プロジェクト: bbuck/reaper
        private void Awake()
        {
            if (Instance != null && Instance != this)
            {
                Debug.LogError("There appear to be more than one player objects in this scene, this is an error state.");
            }

            Instance = this;

            Motor = GetComponent <PhysicsMotor2D>();

            if (debugSoul != null)
            {
                ActiveSoul = debugSoul;
                ActiveSoul.Initialize(this);
            }

            _activatingSoul = false;
        }