Game Demo scene is added.

posted in: Weekly Progress | 0

Instruction menu is added to show and help the users that how to play the game.

 

 

 

 

 

using UnityEngine;
using System.Collections;

public class InstructionManager : MonoBehaviour
{
public float BlinkingTime;
public GameObject InstructionPanel;
public static InstructionManager Instance {get; private set;}

public string []InstructionTextArray;
public string []InstructionSentences;

private eInstructionSequence _instructionSeq;
private float _blinkingTime;
private bool _blinkTrigger;

public enum eInstructionSequence
{
MovePlayerUp,
MovePlayerDown,
MovePlayerLeft,
MovePlayerRight,
SelectWeaponRope,
SelectWeaponShotgun,
SelectWeaponRifle,
ShootWeapon,
ActivateSlowMotion,
Complete
}

// Use this for initialization
void Awake ()
{
Instance = this;
_instructionSeq = eInstructionSequence.MovePlayerUp;
//SetInstructionSeq(eInstructionSequence.SelectWeaponRope);
_blinkingTime = BlinkingTime;
_blinkTrigger = true;
}

public void SetInstructionSeq(eInstructionSequence seq)
{
if ((int)seq == ( (int)_instructionSeq + 1) )
_instructionSeq = seq;
}

public eInstructionSequence GetInstructionSeq()
{
return _instructionSeq;
}
}

Leave a Reply